package com.atguigu.eduservice.client.frontClient;

import com.atguigu.eduservice.client.VodFileDegradeFeignClient;
import com.atguigu.ucenter.entity.vo.UserCommentInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-ucenter", fallback = CommentFrontDegradeFeignClient.class)
@Component
public interface CommentFrontClient {
    @GetMapping("/ucenter/member/getOpenIdMember/{userId}")
    public UserCommentInfoVO getOpenIdMember(@PathVariable("userId") String userId);
}
